<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view>
			<text class="title">{{title}}</text>
      <text>{{info}}</text>
		</view>
    <view class="but">
      <button @click="getInfo">按钮</button>
    </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
        info: {}
			}
		},
		onLoad() {

		},
		methods: {
      getInfo() {
        // this.$api.user.login()
        this.$api.user.index({
          type: 0
        }).then((res) => {
          this.info = res
          console.log(res)
        })
      }
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
